package com.jeejam.storage.sdk.api;


import com.jeejam.framework.base.pojo.TreePager;
import com.jeejam.storage.sdk.dto.DepotDto;

import java.util.List;

public interface IDepotService {
    public List<DepotDto> findAll();

    public List<DepotDto> selectRoot();

    public List<DepotDto> selectRootByPage(int page, int pageSize);

    public List<DepotDto> selectChildren(int id);

    public List<DepotDto> selectSubChildren(int parentId);

    public TreePager getTreePager(int currentPage, int pageSize);

    public int countsWithRoot();

    public DepotDto findByCode(String code);

    public void deleteWithChildren(int id);

    public void save(DepotDto depotDto);

    public void update(DepotDto depotDto);

    public DepotDto getById(int id);
}
